-- GENERATED SPELL FOR [Stormforged Eradicator] --


function spell0_29861(pUnit, Event) --@Storm Punch,n/a--
pUnit:FullCastSpellOnTarget(56352,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29861', 12000, 1)
end

function spell1_29861(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15588,pUnit)
pUnit:RegisterEvent('Sorts_29861', 10271, 1)
end

function Sorts_29861(pUnit, Event)
local choix_sorts_29861 = math.random(0, 1)
if choix_sorts_29861 == 0 then
pUnit:RegisterEvent('spell0_29861', 1, 1)
end
if choix_sorts_29861 == 1 then
pUnit:RegisterEvent('spell1_29861', 1, 1)
end
end

function mob29861_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29861', math.random(1500, 3000), 1)
end

function mob29861_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29861_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29861_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29861, 1, 'mob29861_Action')
RegisterUnitEvent(29861, 2, 'mob29861_Leave')
RegisterUnitEvent(29861, 3, 'mob29861_Kill')
RegisterUnitEvent(29861, 4, 'mob29861_Die')
